/*
 * @Author: your name
 * @Date: 2020-11-05 15:59:43
 * @LastEditTime: 2021-10-15 10:44:45
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /project/src/index/apis/Home/index.ts
 */
import request from '@/common/utils/request'
// import * as model from './model'

import { instanceProps } from '@/common/utils/request'

// 接口域名
const isMock = process.env.NODE_ENV === 'development' ? true : false

const domain = isMock ? './api' : `${process.env.APP_BASE_API}`
const prefix = process.env.NODE_ENV === 'development' ? '' : '/assetAnalysis' // 接口前缀
// 接口路径
const basePath = `${domain}${prefix}`

// 查询
export function queryCashFlow(params:any): any {
  return request({
    url: `${basePath}/cashFlow/findList`,
    method: 'post',
    model: null,
    params
  } as instanceProps)
}
